package com.gccloud.design.feign;

import com.gccloud.feign.filter.FeignRequestFilter;
import com.gccloud.starter.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * @author guo.wang
 */
@FeignClient(name = "userCenter", path = "/userCenter", configuration = {FeignRequestFilter.class})
public interface UserCenterClient {

    @GetMapping(value = "/sys/role/getUserOrgInfoByRole/{query}")
    R<List<Map<String, Object>>> getUserOrgInfoByRole(@PathVariable("query") Long query);

    @GetMapping(value = "/sys/role/list/{userId}")
    R<List<Map<String, Object>>> getRoleListByUserId(@PathVariable("userId") String userId);
}
